<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 
jimport('mylibs.globalModel');
$globalModel = new globalModel();
$data = $globalModel->getAllArticle();
?>
<h1><?php echo $data[0]['title'];?></h1>
<?php if ( !empty($data[0]['article_image']) ) { ?>
<img src="<?php echo $data[0]['article_image'];?>" alt="" />
<?php } ?>
<?php echo $data[0]['fulltext'];?>
                                    
                                    
                                   
                                        
